/*
 *  ComposerVP.h
 *  openFrameworks
 *
 *  Created by fregment on 08.06.09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef __COMPOSER_VP
#define ____COMPOSER_VP

#include "Segment.h"
#include <vector>
#include "ofMain.h"

namespace abliefern {
	
	class ComposerVP {
	public:
		
		ComposerVP(int theX, int theY, int theR, int theSize, int theDistance);
		
		int x;
		int y;
		int r;
		int gridSize;
		int gridDist;
		bool overState;
		bool isActive;
		
		void drawGrid();
		void deleteGrid();
		
		void addGridPoint(int theX, int theY);
		
		bool isOver(int theX, int theY);
		
		void shiftPoints(int theX, int theY);
		
		
		
		
		
		
		
		std::vector<Point2f> gridPoints;
		
	
		
		
		void makeGrid(int theSize, int theDist);
	};
	
}

#endif